import { createApp } from 'vue'
import App from './App.vue'
import {
    Button, Tabbar, TabbarItem, NavBar,
    Icon, Image as VanImage, NoticeBar, Swipe, SwipeItem,
    Grid, GridItem, Cell, CellGroup, Loading, PullRefresh, Search,
    Col, Row, Form, Field, Toast 
} from 'vant'
// 2. 引入组件样式
import 'vant/lib/index.css';
import router from './router/router'

createApp(App).use(Button).use(router).use(Tabbar)
    .use(TabbarItem).use(NavBar).use(Icon).use(VanImage)
    .use(NoticeBar).use(Swipe).use(SwipeItem).use(Grid)
    .use(GridItem).use(Cell).use(CellGroup).use(Loading)
    .use(PullRefresh).use(Search).use(Col).use(Row)
    .use(Form).use(Field).use(Toast).mount('#app')
